home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Utilities / MacDOS™ 2.0.0ƒ / User's Guide / 04 Working with Volumes < prev    next >
Encoding:
Text File  |  1994-11-23  |  4.4 KB  |  94 lines  |  [TEXT/ttxt]

  1. 4  Working with Volumes
  2.        This  section  describes the MacDOS commands which  let  you
  3.        work  with volumes. Refer to the section "Data on  the  Mac"
  4.        for an introduction to the concept of "volume".
  5.  
  6.        Many  MacDOS commands let you specify a volume  as  part  of
  7.        parameters  which  identify  files  and  folders.  In  those
  8.        cases,  if  you  do not specify a particular volume,  MacDOS
  9.        assumes that the files or folders are on what is called  the
  10.        "current volume".
  11.  
  12.        When  you  launch MacDOS, it automatically sets the  current
  13.        volume  to  the volume that contains the MacDOS application.
  14.        If  you  never need to refer to other volumes (like floppies
  15.        and  other  hard  disks), you can work with  MacDOS  without
  16.        ever having to specify a volume at all.
  17.  
  18.        MacDOS  identifies  volumes  through  volume  IDs.  You  can
  19.        assign  new  IDs  to  volumes, display  data  of  particular
  20.        volumes, and operate on different volumes.
  21.  
  22. Volume IDs
  23.        The  Mac OS uses a number called Volume Reference Number  to
  24.        identify a volume. MacDOS extends this concept to that  more
  25.        general   one   of  volume  ID  by  including  user-assigned
  26.        letters.
  27.  
  28.        You  assign  literal volume IDs to volumes with the  command
  29.        SUBSTVOL,  which operates on volumes regardless  of  whether
  30.        they  are  mounted or not. Therefore, you can  set  up  your
  31.        literal   volume  IDs  before  mounting  the   corresponding
  32.        volumes. Nevertheless, you will not be able to use  the  new
  33.        IDs until you actually mount the volumes they identify.
  34.  
  35.        If  you  want to know all current assignments, type SUBSTVOL
  36.        without parameters.
  37.  
  38.        Whenever a volume ID could be confused with something  else,
  39.        you  need  to  append  a colon. For instance,  if  you  type
  40.        "DIR  c", MacDOS attempts to display the directory entry  of
  41.        the  file  named  'c'. If you want to list  the  content  of
  42.        volume  'C',  you  need to type "DIR c:". If  you  take  the
  43.        habit of always typing the colon, you cannot ever be wrong.
  44.  
  45.        The startup volume is always identified by volume ID 1.
  46.  
  47. Displaying Volumes
  48.        If  you  want to know the ID and name of the current volume,
  49.        type   the   command  VOL  and  MacDOS  will   provide   the
  50.        information. VOL also notifies you when a volume is locked.
  51.  
  52.        If  you want to have information on a volume other than  the
  53.        current  one,  type VOL followed by the  volume  ID  of  the
  54.        volume  you are interested in. Also the commands DIR and  CD
  55.        display   ID   and   volume  name   (together   with   other
  56.        information).
  57.  
  58.        If  you  execute the command PROMPT with the options  $N  or
  59.        $P,  MacDOS will include the ID of the current volume in the
  60.        command prompt.
  61.  
  62. Changing the Current Volume
  63.        When   MacDOS   is   launched,   the   current   volume   is
  64.        automatically  set to the volume which contains  the  MacDOS
  65.        application  file. This is true regardless  of  whether  you
  66.        launch  MacDOS  by  double clicking  on  a  text  file  with
  67.        creator   'mDOS',  on  an  alias  of  MacDOS,  or   on   the
  68.        application file itself.
  69.  
  70.        To  make a different volume current (in jargon: to attach to
  71.        a  different volume), just type the new volume ID, a  colon,
  72.        and  RETURN. MacDOS interprets a volume ID on its own  as  a
  73.        request  to  change the current volume, checks  whether  the
  74.        requested volume is mounted, and attaches to it.
  75.  
  76.        You  can attach to any mounted volume, regardless of whether
  77.        it  is on-line or not. Only when MacDOS needs to access  the
  78.        volume  it  checks whether the volume is off-line  and  asks
  79.        you  to  put  it  back  on-line  (eg.  to  re-introduce  the
  80.        floppy).
  81.  
  82.        MacDOS  commands recognise volumes through  their  IDs,  but
  83.        the  requests to put a volume back on-line refer  to  volume
  84.        names.  If you realise that the name is different from  what
  85.        you  expected and want to go back to the MacDOS prompt, type
  86.        cmd-dot or cntl-C.
  87.  
  88. Ejecting volumes
  89.        You  can dismount removable volumes (eg. floppies) with  the
  90.        command  EJECT followed by the volume ID. If you  just  want
  91.        to  put  the  volume  off-line but  keep  its  icon  on  the
  92.        desktop, type the same command with the switch /E.
  93.  
  94.